package com.woniuxy.dao;

import com.woniuxy.pojo.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 罗蔚
 * @Date 2022/3/28 0:50
 * @Description TODO
 */
public interface AddressDao {
    public void addAddress(Address address);
    public void updateAllTypeByUid(int uid);
    public void updateByUidAndId(Address address);

    public List<Address> findAllAddress(int uid);

    public void deleteById(@Param("id")int id, @Param("uid")int uid);

    //设为默认
    public void updateTypeByUidAndId(@Param("id")int id, @Param("uid")int uid);

    public Address findByIdAndUid(@Param("id")int id, @Param("uid")int uid);

    public List<Address> findFourAddress(int uid);
}
